/*
 * @Author: your name
 * @Date: 2021-05-12 11:03:02
 * @LastEditTime: 2021-05-13 14:37:48
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \koa2-serve\routes\user.js
 */
const UserController = require('../controller//user.js')
module.exports = [
    {
        method:'post',
        url:'/login',
        controller:[ UserController.login ]
    },
    {
        method:'get',
        url:'/getAll',
        controller:[ UserController.getAllUser ]
    },
    {
        method:'post',
        url:'/saveUser',
        controller:[ UserController.saveUser ]
    },
    {
        method:'get',
        url:'/getUserById',
        controller:[ UserController.getUserById ]
    }
]